﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace BLL
{
    /// <summary>
    /// Author: Sissi Zeng
    /// Date: 2012-08-08 16:30 
    /// get LevelList from DAL(Level)
    /// return to UI
    /// </summary>
    public class LevelList
    {


        /// <summary>
        /// Constructor
        /// </summary>
        public LevelList() { }


        /// <summary>
        /// get Level List By column name
        /// </summary>
        /// <param name="colum">column name</param>
        /// <returns>DataSet</returns>
        public SqlDataReader getListBy(string colum)
        {
            DAL.Level dalLevel = new DAL.Level();
            return dalLevel.getListBy(colum);                                           
        }

        /// <summary>
        /// get Level list of all column
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet getList() {
            DAL.Level dalLevel = new DAL.Level();
            return dalLevel.getAll();
        }


    }
}
